ActionController::Routing::Routes.draw do |map|

  map.resource :council, :controller => "council"
  map.resource :executive, :controller => "executive"

  map.resources :documents

  map.resources :meetings

  map.resources :committees

  map.resources :parties

  map.resources :wards

  map.resources :councillors

  map.resources :homepage
  map.postcode_lookup "/postcode_lookup", :controller => "homepage", :action => "postcode_lookup"

  map.root :controller => "homepage"

  map.logout '/logout', :controller => 'sessions', :action => 'destroy'
  map.login '/login', :controller => 'sessions', :action => 'new'
  map.register '/register', :controller => 'users', :action => 'new'
  map.resources :users
  map.resource :session


end
